<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Vue-Tmeplete</title>
    <!-- <link rel="stylesheet" href="../../../assets/css/bootstrap.min.css"> -->
    <script src="../../../assets/js/vue-2.5.6.js"></script>
</head>

<body>
    <div id="app">

    </div>
    <!--template 标签模板 -->
    <template id="demo2">
        <h1 style="color:red">我是Template html</h1>
    </template>
    <!--script标签模板-->
    <!-- <script type="x-template" id="demo3">
        <h1 style="color:red">我是script标签模板</h1>
    </script> -->

</body>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            message: 'hello Vue!'
        },
        template: '#demo2'
            //template:`   <h1 style="color:red">我是选项模板</h1>`
    })
</script>

</html>